/*
 * @Author       : Thyssen Wen
 * @Date         : 2022-10-04 08:39:47
 * @LastEditors  : Thyssen Wen
 * @LastEditTime : 2022-10-04 09:32:24
 * @Description  : Test
 * @FilePath     : /cdesign-pattern/Singleton/test.cpp
 */
#include "Singleton.h"
#include <iostream>
using namespace std;

int main(int argc, char *argv[]){
    cout << "Start." << endl;
    Singleton *obj1 = Singleton::getInstance();
    Singleton *obj2 = Singleton::getInstance();
    if (obj1 == obj2)
    {
        cout << "obj1 is equall to obj2" << endl;
    }else{
        cout << "obj1 is not equall to obj2" << endl;
    }
    cout << "End." << endl;
    return 0;
}